package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.entity.Dept;
import com.crm.vo.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {
    /**
     * 线索查询部门列表
     * @return
     */
    @Select("SELECT dept_id, parent_id, dept_name FROM dept")
    List<SysDept> selectAllDepts();
}
